package com.mmp.common.bo;

import java.sql.Connection;
import java.util.HashMap;

import net.sf.jasperreports.engine.JRDataSource;

public class JRBean {

	protected HashMap<String, Object> params;
	protected String jasperPrintPath;
	protected JRDataSource dataSource;
	protected Connection dbConnection;
	protected String displayName;

	public JRBean() {
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDBConnection(Connection dbConnection) {
		this.dbConnection = dbConnection;
	}

	public Connection getDBConnection() {
		return dbConnection;
	}

	public void setParams(HashMap<String, Object> params) {
		this.params = params;
	}

	public void addParam(String key, Object value) {
		this.params.put(key, value);
	}

	public HashMap<String, Object> getParams() {
		return params;
	}

	public void setJasperPrintPath(String jpFileName) {
		this.jasperPrintPath = jpFileName;
	}

	public String getJasperPrintPath() {
		return jasperPrintPath;
	}

	public void setDataSource(JRDataSource ds) {
		this.dataSource = ds;
	}

	public JRDataSource getDataSource() {
		return dataSource;
	}
}
